package com.daiyang.mybatis_2.mapper;

import com.daiyang.mybatis_2.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
public interface UserInfoMapper {
    @Select("select username, password, age, gender, phone from user_info where id=#{id}")
   public List<UserInfo> queryAllUser(Integer id);
}
